#include <avr/io.h>#include "RS232.h"
Go to the source code of this file.
Defines | |
| #define | F_OSC 4000000 |
| #define | UART_BAUD_RATE 4800 |
| #define | UART_BAUD_CALC(UART_BAUD_RATE, F_OSC) ((F_OSC)/((UART_BAUD_RATE)*16l)-1) |
Functions | |
| void | uart0_init (char *s) |
| void | uart0_putc (unsigned char c) |
| initialize UART0 | |
| void | uart0_puts (char *s) |
| put char to UART0 | |
| void | uart0_send_initial_char () |
| put string to UART0 | |
| void | uart1_init () |
| Send initials char to UART0. | |
| void | uart1_putc (unsigned char c) |
| initialize UART1 | |
| void | uart1_puts (char *s) |
| put char to UART1 | |
| void | uart1_send_initial_char () |
| put string UART1 | |
| #define F_OSC 4000000 |
| #define UART_BAUD_CALC | ( | UART_BAUD_RATE, | |||
| F_OSC | ) | ((F_OSC)/((UART_BAUD_RATE)*16l)-1) |
| #define UART_BAUD_RATE 4800 |
| void uart0_init | ( | char * | s | ) |
Definition at line 8 of file RS232.c.
References F_OSC, UART_BAUD_CALC, and UART_BAUD_RATE.
Referenced by InitUarts().
| void uart0_putc | ( | unsigned char | c | ) |
initialize UART0
| none |
Definition at line 21 of file RS232.c.
Referenced by ReportPosition(), and uart0_puts().
| void uart0_puts | ( | char * | s | ) |
put char to UART0
| none |
Definition at line 28 of file RS232.c.
Referenced by initGSM(), ReportPosition(), and sendTestSMS().
| void uart0_send_initial_char | ( | ) |
put string to UART0
| none |
Definition at line 36 of file RS232.c.
Referenced by InitUarts().
| void uart1_init | ( | ) |
Send initials char to UART0.
| none |
Definition at line 44 of file RS232.c.
Referenced by InitUarts().
| void uart1_putc | ( | unsigned char | c | ) |
initialize UART1
| none |
Definition at line 57 of file RS232.c.
Referenced by uart1_puts().
| void uart1_puts | ( | char * | s | ) |
| void uart1_send_initial_char | ( | ) |
1.5.3